package com.learnosity.extendotext.style
{
	import com.learnosity.extendotext.Rule;
	import flash.text.engine.ElementFormat;
	import flash.text.engine.FontDescription;
		
	public class FontFamily
	{

		static public function apply(rule:Rule,format:ElementFormat):ElementFormat{
			//Get an unlocked font description
			var fd:FontDescription = format.fontDescription.clone();
			fd.fontName = rule.value;
			format.fontDescription = fd;
			return format;
		}

	}
}